package com.dxx.cloud.admin.utils;

public class MobileUtils {
    public static final String MOBILE_REGEX = "(\\d{3})\\d{4}(\\d{4})";
    public static String hideMiddle(String mobile) {
        if(null == mobile || mobile.length()==0){
            return mobile;
        }
        return mobile.replaceAll(MOBILE_REGEX,"$1****$2");
    }

}
